package com.pwser.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration //创建Tomcat并自动注入spring配置
@ComponentScan("com.pwser.helloworld, com.pwser.controller, com.pwser.exception") //扫描包
public class App {
	
	public static void main(String[] args) {
		//主函数运行springboot项目
		SpringApplication.run(App.class, args);
	}
	
}
